package org.kl.bf.entity.workflow;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @Author hqm
 * @CreateTime 2014年3月29日 下午1:39:29
 */
public class ETask {
	public static final String CLIAM = "cliam";// 未签收
	public static final String TODO = "todo";// 已签收
	public static final String DONE = "done";// 已完成
	/**
	 * 任务ID
	 */
	private String id;
	/**
	 * 任务名称
	 */
	private String name;
	/**
	 * 任务创建时间
	 */
	private Date createTime;
	/**
	 * HistoricTaskInstance的开始时间
	 */
	private Date startTime;
	/**
	 * 流程定义名称
	 */
	private String pdname;
	/**
	 * 流程定义ID
	 */
	private String processDefinitionId;
	/**
	 * 流程定义版本
	 */
	private int pdversion;
	/**
	 * 流程实例ID
	 */
	private String pid;
	private String processInstanceId;
	/**
	 * 签收状态
	 */
	private String status;
	/**
	 * 负责人姓名
	 */
	private String assigneeName;
	private String executionId;

	/**
	 * 发起人姓名
	 */
	private String promoter;
	/**
	 * 上一节点提交人姓名
	 */
	private String lastTaskMan;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	// 设定JSON序列化时的日期格式
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+08:00")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	// 设定JSON序列化时的日期格式
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+08:00")
	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public String getPdname() {
		return pdname;
	}

	public void setPdname(String pdname) {
		this.pdname = pdname;
	}

	public int getPdversion() {
		return pdversion;
	}

	public void setPdversion(int pdversion) {
		this.pdversion = pdversion;
	}

	public String getProcessDefinitionId() {
		return processDefinitionId;
	}

	public void setProcessDefinitionId(String processDefinitionId) {
		this.processDefinitionId = processDefinitionId;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getProcessInstanceId() {
		return processInstanceId;
	}

	public void setProcessInstanceId(String processInstanceId) {
		this.processInstanceId = processInstanceId;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getAssigneeName() {
		return assigneeName;
	}

	public void setAssigneeName(String assigneeName) {
		this.assigneeName = assigneeName;
	}

	public String getExecutionId() {
		return executionId;
	}

	public void setExecutionId(String executionId) {
		this.executionId = executionId;
	}

	public String getPromoter() {
		return promoter;
	}

	public String getLastTaskMan() {
		return lastTaskMan;
	}

	public void setLastTaskMan(String lastTaskMan) {
		this.lastTaskMan = lastTaskMan;
	}

	public void setPromoter(String promoter) {
		this.promoter = promoter;
	}

}
